package cn.stylefeng.guns.modular.shuheng.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhengpp
 * @since 2021-03-19
 */
@TableName("job_files")
public class Files implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "file_id", type = IdType.ID_WORKER)
    private Long fileId;

    /**
     * 资料id
     */
    @TableField("data_id")
    private Long dataId;

    /**
     * 文件名
     */
    @TableField("file_name")
    private String fileName;

    /**
     * 文件类型
     */
    @TableField("file_type")
    private String fileType;

    /**
     * 路径
     */
    @TableField("file_path")
    private String filePath;

    /**
     * 基础分值
     */
    @TableField("base_score")
    private BigDecimal baseScore;

    /**
     * 省判分
     */
    @TableField("data_score_p")
    private BigDecimal dataScoreP;

    @TableField("data_score_c")
    private BigDecimal dataScoreC;

    @TableField("region_level")
    private Integer regionLevel;

    @TableField("year")
    private Integer year;

    @TableField("province")
    private Long province;

    @TableField("city")
    private Long city;

    @TableField("county")
    private Long county;

    @TableField("remark_c")
    private String remarkC;

    @TableField("remark_p")
    private String remarkP;

    @TableField("star_c")
    private Integer starC;

    @TableField("star_p")
    private Integer starP;

    @TableField("score_time")
    private Date scoreTime;

    @TableField("score_user")
    private Long scoreUser;

    @TableField("status")
    private Integer status;

    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_user", fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    public Long getFileId() {
        return fileId;
    }

    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }
    public Long getDataId() {
        return dataId;
    }

    public void setDataId(Long dataId) {
        this.dataId = dataId;
    }
    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }
    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }
    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    public Integer getRegionLevel() {
        return regionLevel;
    }

    public void setRegionLevel(Integer regionLevel) {
        this.regionLevel = regionLevel;
    }

    public Long getProvince() {
        return province;
    }

    public void setProvince(Long province) {
        this.province = province;
    }

    public Long getCity() {
        return city;
    }

    public void setCity(Long city) {
        this.city = city;
    }

    public Long getCounty() {
        return county;
    }

    public void setCounty(Long county) {
        this.county = county;
    }

    public BigDecimal getBaseScore() {
        return baseScore;
    }

    public void setBaseScore(BigDecimal baseScore) {
        this.baseScore = baseScore;
    }

    public BigDecimal getDataScoreP() {
        return dataScoreP;
    }

    public void setDataScoreP(BigDecimal dataScoreP) {
        this.dataScoreP = dataScoreP;
    }

    public BigDecimal getDataScoreC() {
        return dataScoreC;
    }

    public void setDataScoreC(BigDecimal dataScoreC) {
        this.dataScoreC = dataScoreC;
    }

    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public String getRemarkC() {
        return remarkC;
    }

    public void setRemarkC(String remarkC) {
        this.remarkC = remarkC;
    }

    public String getRemarkP() {
        return remarkP;
    }

    public void setRemarkP(String remarkP) {
        this.remarkP = remarkP;
    }

    public Integer getStarC() {
        return starC;
    }

    public void setStarC(Integer starC) {
        this.starC = starC;
    }

    public Integer getStarP() {
        return starP;
    }

    public void setStarP(Integer starP) {
        this.starP = starP;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getScoreTime() {
        return scoreTime;
    }

    public void setScoreTime(Date scoreTime) {
        this.scoreTime = scoreTime;
    }

    public Long getScoreUser() {
        return scoreUser;
    }

    public void setScoreUser(Long scoreUser) {
        this.scoreUser = scoreUser;
    }

    @Override
    public String toString() {
        return "Files{" +
        "fileId=" + fileId +
        ", dataId=" + dataId +
        ", fileName=" + fileName +
        ", fileType=" + fileType +
        ", filePath=" + filePath +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", updateTime=" + updateTime +
        ", updateUser=" + updateUser +
        "}";
    }

    public void copy(Files files){
        setDataId(files.getDataId());
        setFileName(files.getFileName());
        setFileType(files.getFileType());
        setFilePath(files.getFilePath());
    }
}
